package com.shenzhenai.it_hei_ma.a07threadmethod4;

/**
 * @author huangzehui
 * @date 2025/8/27 13:15 周三
 * @description
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        for (int i = 0; i <= 100; i++) {
            System.out.println(getName() + "@" + i);
            // 表示出让当前cpu的执行权
            Thread.yield();
        }
    }
}
